import uvicorn
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from devOps import devOps

app = FastAPI()

app.add_middleware(
  CORSMiddleware,
  allow_origins=["*"],
  allow_credentials=True,
  allow_methods=["GET", "POST", "PUT", "DELETE", "OPTIONS"],
  allow_headers=["*"]
)

app.mount("/ops", devOps.devOps)

if __name__ == "__main__":
  uvicorn.run(app="main:app", host="0.0.0.0", port=8003)